/* ===================================================================
   邀约活动管理页面样式
   基于Apple Design System
   版本：v1.0
   创建时间：2025-07-20
=================================================================== */

/* 页面布局 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--system-grouped-background);
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--system-background);
    border-bottom: 1px solid var(--separator-non-opaque);
    z-index: var(--z-fixed);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-4);
    max-width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-weight: var(--font-weight-semibold);
    color: var(--label-primary);
}

.nav-brand i {
    color: var(--apple-blue);
    font-size: 1.2em;
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
}

.breadcrumb-item.active {
    color: var(--label-primary);
    font-weight: var(--font-weight-medium);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.nav-button {
    position: relative;
    background: none;
    border: none;
    padding: var(--spacing-2);
    border-radius: var(--radius-medium);
    color: var(--label-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-button:hover {
    background-color: var(--fill-quaternary);
    color: var(--label-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--apple-red);
    color: white;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    padding: 2px 6px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-menu:hover {
    background-color: var(--fill-quaternary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
}

.user-name {
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 240px;
    height: calc(100vh - 60px);
    background-color: var(--system-background);
    border-right: 1px solid var(--separator-non-opaque);
    overflow-y: auto;
    z-index: var(--z-sticky);
}

.sidebar-content {
    padding: var(--spacing-4);
}

.sidebar-section {
    margin-bottom: var(--spacing-6);
}

.sidebar-title {
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-semibold);
    color: var(--label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-3);
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    margin-bottom: var(--spacing-1);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-3);
    color: var(--label-secondary);
    text-decoration: none;
    border-radius: var(--radius-medium);
    font-size: var(--font-size-subhead);
    transition: all var(--transition-fast);
}

.menu-link:hover {
    background-color: var(--fill-quaternary);
    color: var(--label-primary);
}

.menu-item.active .menu-link {
    background-color: var(--apple-blue);
    color: white;
}

.menu-item.active .menu-link:hover {
    background-color: var(--apple-blue-dark);
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    margin-top: 60px;
    padding: var(--spacing-6);
    min-height: calc(100vh - 60px);
}

/* 页面头部 */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-6);
}

.header-left {
    flex: 1;
}

.page-title {
    font-size: var(--font-size-large-title);
    font-weight: var(--font-weight-bold);
    color: var(--label-primary);
    margin-bottom: var(--spacing-1);
}

.page-subtitle {
    font-size: var(--font-size-body);
    color: var(--label-secondary);
    line-height: 1.4;
}

.header-right {
    display: flex;
    gap: var(--spacing-3);
    margin-top: var(--spacing-1);
}

/* 统计卡片 */
.stats-section {
    margin-bottom: var(--spacing-6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-4);
}

.stat-card {
    background-color: var(--system-background);
    border-radius: var(--radius-large);
    padding: var(--spacing-5);
    box-shadow: var(--shadow-small);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.stat-primary {
    background-color: var(--apple-blue);
}

.stat-icon.stat-success {
    background-color: var(--apple-green);
}

.stat-icon.stat-warning {
    background-color: var(--apple-orange);
}

.stat-icon.stat-info {
    background-color: var(--apple-purple);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: var(--font-size-title-1);
    font-weight: var(--font-weight-bold);
    color: var(--label-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
    margin-top: var(--spacing-1);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-medium);
    margin-top: var(--spacing-1);
}

.stat-change.positive {
    color: var(--apple-green);
}

.stat-change.negative {
    color: var(--apple-red);
}

/* 搜索和筛选区域 */
.search-filter-section {
    background-color: var(--system-background);
    border-radius: var(--radius-large);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-6);
    box-shadow: var(--shadow-small);
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--label-tertiary);
    font-size: var(--font-size-subhead);
}

.search-input {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-10) var(--spacing-3) var(--spacing-10);
    font-size: var(--font-size-body);
    border: 1px solid var(--separator-opaque);
    border-radius: var(--radius-medium);
    background-color: var(--system-background-secondary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.25);
}

.search-clear {
    position: absolute;
    right: var(--spacing-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--label-tertiary);
    cursor: pointer;
    padding: var(--spacing-1);
    border-radius: var(--radius-small);
    transition: all var(--transition-fast);
}

.search-clear:hover {
    background-color: var(--fill-quaternary);
    color: var(--label-secondary);
}

.filter-controls {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.filter-group {
    min-width: 140px;
}

.filter-label {
    display: block;
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-medium);
    color: var(--label-secondary);
    margin-bottom: var(--spacing-1);
}

.filter-select {
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-subhead);
    border: 1px solid var(--separator-opaque);
    border-radius: var(--radius-medium);
    background-color: var(--system-background-secondary);
    color: var(--label-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.25);
}

/* 表格部分 */
.table-section {
    background-color: var(--system-background);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-5);
    border-bottom: 1px solid var(--separator-non-opaque);
    background-color: var(--system-background-secondary);
}

.table-title h2 {
    font-size: var(--font-size-title-3);
    font-weight: var(--font-weight-semibold);
    color: var(--label-primary);
    margin-bottom: var(--spacing-1);
}

.result-count {
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.view-toggle {
    display: flex;
    background-color: var(--fill-secondary);
    border-radius: var(--radius-medium);
    padding: 2px;
}

.view-btn {
    background: none;
    border: none;
    padding: var(--spacing-2);
    border-radius: var(--radius-small);
    color: var(--label-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn.active {
    background-color: var(--system-background);
    color: var(--apple-blue);
    box-shadow: var(--shadow-small);
}

/* 表格视图 */
.table-container {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th,
.activity-table td {
    padding: var(--spacing-4);
    text-align: left;
    border-bottom: 1px solid var(--separator-non-opaque);
}

.activity-table th {
    background-color: var(--system-background-secondary);
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-semibold);
    color: var(--label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.activity-table th.sortable:hover {
    background-color: var(--fill-quaternary);
}

.activity-table th.sortable i {
    margin-left: var(--spacing-1);
    opacity: 0.5;
}

.activity-row:hover {
    background-color: var(--system-background-secondary);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.activity-title {
    font-weight: var(--font-weight-medium);
    color: var(--label-primary);
}

.activity-theme {
    font-size: var(--font-size-caption-1);
    color: var(--label-secondary);
}

.date-info,
.location-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date {
    font-weight: var(--font-weight-medium);
}

.time,
.address {
    font-size: var(--font-size-caption-1);
    color: var(--label-secondary);
}

/* 活动类型标识 */
.type-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.type-badge.type-presentation {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue-dark);
}

.type-badge.type-destination {
    background-color: rgba(52, 199, 89, 0.1);
    color: #248A3D;
}

.type-badge.type-appreciation {
    background-color: rgba(255, 149, 0, 0.1);
    color: #B25000;
}

.type-badge.type-tea {
    background-color: rgba(175, 82, 222, 0.1);
    color: #8B5CF6;
}

.type-badge.type-online {
    background-color: rgba(255, 45, 146, 0.1);
    color: #EC4899;
}

/* 活动状态标识 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.status-badge.status-preparing {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue-dark);
}

.status-badge.status-ongoing {
    background-color: rgba(52, 199, 89, 0.1);
    color: #248A3D;
}

.status-badge.status-finished {
    background-color: var(--fill-secondary);
    color: var(--label-secondary);
}

.status-badge.status-cancelled {
    background-color: rgba(255, 59, 48, 0.1);
    color: #D70015;
}

/* 参与率进度条 */
.participation-rate {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
    min-width: 80px;
}

.rate-bar {
    height: 6px;
    background-color: var(--fill-secondary);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background-color: var(--apple-green);
    border-radius: var(--radius-small);
    transition: width var(--transition-normal);
}

.rate-text {
    font-size: var(--font-size-caption-1);
    font-weight: var(--font-weight-medium);
    color: var(--label-primary);
    text-align: center;
}

/* 操作按钮 */
.actions {
    width: 140px;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-1);
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--fill-quaternary);
    color: var(--label-secondary);
    border-radius: var(--radius-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--apple-blue);
    color: white;
    transform: translateY(-1px);
}

/* 卡片视图 */
.grid-container {
    padding: var(--spacing-5);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-5);
}

.activity-card {
    background-color: var(--system-background);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.activity-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.activity-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-4);
    background-color: var(--system-background-secondary);
}

.activity-card .card-body {
    padding: var(--spacing-4);
}

.activity-card .activity-title {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-semibold);
    color: var(--label-primary);
    margin-bottom: var(--spacing-2);
}

.activity-card .activity-theme {
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
    margin-bottom: var(--spacing-4);
    line-height: 1.4;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
}

.detail-item i {
    width: 16px;
    color: var(--apple-blue);
}

.participation-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-3);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-number {
    font-size: var(--font-size-title-3);
    font-weight: var(--font-weight-bold);
    color: var(--label-primary);
}

.stat-item .stat-label {
    font-size: var(--font-size-caption-1);
    color: var(--label-secondary);
    margin-top: var(--spacing-1);
}

.progress-bar {
    height: 4px;
    background-color: var(--fill-secondary);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--apple-green);
    border-radius: var(--radius-small);
    transition: width var(--transition-normal);
}

.activity-card .card-footer {
    display: flex;
    gap: var(--spacing-2);
    padding: var(--spacing-4);
    border-top: 1px solid var(--separator-non-opaque);
}

.card-footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2);
    border: none;
    border-radius: var(--radius-medium);
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-footer-btn.primary {
    background-color: var(--apple-blue);
    color: white;
}

.card-footer-btn.primary:hover {
    background-color: var(--apple-blue-dark);
}

.card-footer-btn.secondary {
    background-color: var(--fill-secondary);
    color: var(--label-primary);
}

.card-footer-btn.secondary:hover {
    background-color: var(--fill-primary);
}

/* 分页组件 */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-5);
    border-top: 1px solid var(--separator-non-opaque);
    background-color: var(--system-background-secondary);
}

.pagination-info {
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
}

.pagination {
    display: flex;
    gap: var(--spacing-1);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    color: var(--label-secondary);
    border-radius: var(--radius-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background-color: var(--fill-quaternary);
    color: var(--label-primary);
}

.page-btn.active {
    background-color: var(--apple-blue);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-2);
    color: var(--label-tertiary);
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-subhead);
    color: var(--label-secondary);
}

.page-size-selector select {
    border: 1px solid var(--separator-opaque);
    border-radius: var(--radius-medium);
    padding: var(--spacing-1) var(--spacing-2);
    background-color: var(--system-background);
    color: var(--label-primary);
}

/* 模态框样式 */
.modal {
    width: 90vw;
    max-width: 600px;
}

.activity-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.section-title {
    font-size: var(--font-size-headline);
    font-weight: var(--font-weight-semibold);
    color: var(--label-primary);
    margin-bottom: var(--spacing-2);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid var(--separator-non-opaque);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.form-label {
    font-size: var(--font-size-subhead);
    font-weight: var(--font-weight-medium);
    color: var(--label-primary);
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--spacing-3);
    font-size: var(--font-size-body);
    border: 1px solid var(--separator-opaque);
    border-radius: var(--radius-medium);
    background-color: var(--system-background);
    color: var(--label-primary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-select[multiple] {
    min-height: 120px;
}

/* Checkbox组件 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-small);
    transition: background-color var(--transition-fast);
}

.checkbox-item:hover {
    background-color: var(--system-background-secondary);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--separator-opaque);
    border-radius: var(--radius-small);
    background-color: var(--system-background);
    position: relative;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--apple-blue);
    border-color: var(--apple-blue);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.checkbox-label {
    font-size: var(--font-size-body);
    color: var(--label-primary);
    user-select: none;
}

/* Radio组件 */
.radio-group {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-small);
    transition: background-color var(--transition-fast);
}

.radio-item:hover {
    background-color: var(--system-background-secondary);
}

.radio-item input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--separator-opaque);
    border-radius: 50%;
    background-color: var(--system-background);
    position: relative;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.radio-item input[type="radio"]:checked {
    border-color: var(--apple-blue);
}

.radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--apple-blue);
    border-radius: 50%;
}

.radio-item input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.radio-label {
    font-size: var(--font-size-body);
    color: var(--label-primary);
    user-select: none;
}

/* 操作菜单 */
.action-menu {
    background-color: var(--system-background);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-xlarge);
    overflow: hidden;
    min-width: 200px;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    background: none;
    border: none;
    color: var(--label-primary);
    cursor: pointer;
    font-size: var(--font-size-body);
    text-align: left;
    transition: all var(--transition-fast);
}

.action-menu-item:hover {
    background-color: var(--fill-quaternary);
}

.action-menu-item.danger {
    color: var(--apple-red);
}

.action-menu-item.danger:hover {
    background-color: rgba(255, 59, 48, 0.1);
}

.action-menu-item.cancel {
    border-top: 1px solid var(--separator-non-opaque);
    color: var(--label-secondary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: var(--spacing-4);
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .page-header {
        flex-direction: column;
        gap: var(--spacing-4);
        align-items: stretch;
    }
    
    .header-right {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-3);
    }
    
    .nav-breadcrumb {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .search-filter-container {
        gap: var(--spacing-3);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-header {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: stretch;
    }
    
    .table-actions {
        justify-content: space-between;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: center;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--spacing-3);
    }
    
    .search-filter-section,
    .table-section {
        border-radius: var(--radius-medium);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--spacing-4);
    }
    
    .activity-card .card-header,
    .activity-card .card-body,
    .activity-card .card-footer {
        padding: var(--spacing-3);
    }
}